package net.xdclass.xdclassmq.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource("classpath:application.properties")
@Data
public class JmsConfig {

    @Value("${rocketmq.nameServerAddr}")
    private String nameServerAddr;

    @Value("${rocketmq.pay.producer.group}")
    private String payProducerGroup;

    @Value("${rocketmq.trans.producer.group}")
    private String transProducerGroup;

    @Value("${rocketmq.pay.consumer.group}")
    private String payConsumerGroup;

    @Value("${rocketmq.pay.orderly.consumer.group}")
    private String payOrderlyConsumerGroup;

    @Value("${rocketmq.pay.topic}")
    private String payTopic;

    @Value("${rocketmq.pay.orderly.topic}")
    private String orderlyTopic;
}
